package com.kh.statistics.video.service;

import com.kh.statistics.video.entity.VideoAccountsHealth;

import java.util.List;

/**
 * @BelongsProject: statistics
 * @BelongsPackage: com.kh.statistics.video.service
 * @Author: Hong.Kong
 * @CreateTime: 2024-05-24  16:43
 * @Description: TODO
 * @Version: 1.0
 */
public interface VideoAccountsHealthService {
    /**
     * 查询所有的登录状态
     *
     * @return
     */
    List<VideoAccountsHealth> searchAll();

    /**
     * 查询某个登录状态
     *
     * @param id
     * @param platform
     * @return
     */
    VideoAccountsHealth searchOne(String id, String platform);

    /**
     * 新增
     * @param accountsHealth
     * @return
     */
    Boolean add(VideoAccountsHealth accountsHealth);

    Boolean isAccountsExist(VideoAccountsHealth accountsHealth);

    /**
     * 根据id 删除心跳检测项
     *
     * @param id
     * @return
     */
    boolean deleteById(String id);
}
